/**
 * 子弹类
 * Author：  suyuyi
 * Date:    2017.4.16
 */

module.exports = cc.Class({
    extends: cc.Node,

    ctor: function(){
        this.id = 0;
        this.pos = null;
        this.rotation = 0;

    },
    createBullet: function(){
        var prefab      = cc.loader.getRes("persist/prefab/effect_bullet", cc.Prefab);
        var enemy       = cc.instantiate(prefab);
        enemy.id        =this.id++;
        
    }
});